package idGen;

import java.io.Serializable;

//import cybertron.core.sleepycat.SleepyCat;

public class ServerPersistLongIdGenerator implements LongIdGenerator,Serializable {

	protected int serverId;
	protected int type;
	protected String seqName;
	protected long head;
	
	public ServerPersistLongIdGenerator(int serverId,int type,String seqName){
		this.serverId = serverId;
		this.type  =  type;
		this.seqName = seqName;
		int tmp = serverId<<24;
		tmp |= type<<16;
		head = (0xFFFFFFFFFFFFFFFFL&tmp)<<32;
	}
	
	@Override
	public long next() {
		//return head|SleepyCat.nextSequence(seqName);
		return 0;
	}

}
